package com.sync.syncmasterdata.product.repository.u8;

import com.sync.syncmasterdata.product.entity.u8.Computationunit;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;


/**
 * ERP 产品 单位
 */

@Repository
public interface ComputationunitRepository extends JpaRepository<Computationunit,String> {

    @Query(nativeQuery = true, value= "select cComUnitName from computationunit where cComunitCode=:code")
    String getUnitName(@Param(value = "code") String code);

}
